//
//  LXSegmentTitleView.h
//

#import <UIKit/UIKit.h>

@class LXSegmentTitleView;

@protocol LXSegmentTitleViewDelegate <NSObject>

@optional

- (void)segmentTitleView:(LXSegmentTitleView *)segmentView selectedIndex:(NSInteger)selectedIndex lastSelectedIndex:(NSInteger)lastSelectedIndex;

@end

@interface LXSegmentTitleView : UIView

@property (nonatomic, weak) id<LXSegmentTitleViewDelegate> delegate;

@property (nonatomic, strong) UIColor *titleNormalColor;

@property (nonatomic, strong) UIColor *titleSelectedColor;

@property (nonatomic, assign) NSInteger selectedIndex;

@property (nonatomic, strong) UIFont *titleFont;

@property (nonatomic, strong) UIFont *titleSelectFont;

@property (nonatomic, assign) CGFloat itemMinMargin;

@property (nonatomic, strong) UIImage *btnBackNormalImg;

@property (nonatomic, strong) UIImage *btnBackSelectImg;

@property (nonatomic, strong) NSArray<NSString *> *segmentTitles;

@property (nonatomic) CGFloat alpha;

@property (nonatomic) BOOL isShowIndicatorAndLine;

@end
